home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / ReaderMouse / MyCaptureAppShell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-31  |  1.6 KB  |  71 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MyApplication Shell (2.0).h
  3.     
  4.     Contains:    My Application Shell.
  5.  
  6.     Written by:    John Wang
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <1>        03/14/94    JW        Re-Created for Universal Headers.
  13.  
  14.     To Do:
  15.     
  16. */
  17.  
  18. #ifdef THINK_C
  19. #define        applec
  20. #endif
  21.  
  22. #ifndef _MyCaptureAppShell_
  23. #define _MyCaptureAppShell_
  24.  
  25. #define        topLeft(r)        (((Point *) &(r))[0])
  26. #define        botRight(r)        (((Point *) &(r))[1])
  27.  
  28. #define        kMENUBAR                    128
  29. #define        kMENU_APPLEID                128
  30.  
  31. #define        kMENU_FILEID                129
  32. #define        kMENU_FILENEW                1
  33. #define        kMENU_FILECLOSE                2
  34. #define        kMENU_FILEQUIT                4
  35.  
  36. #define        kMENU_SETTINGSID            130
  37.  
  38. #define        kMENU_RESIZEID                131
  39.  
  40. #define        kMENU_SPECIALID                132
  41. #define        kMENU_SPECIALHOGPROCESSOR    1
  42. #define        kMENU_SPECIALPROCESSMOVIE    2
  43. #define     kMENU_SPECIALINITEM            3
  44. #define        kMENU_SPECIALSWITCHGOUT        4
  45.  
  46. #define        kMENU_RECORDID                133
  47. #define        kMENU_RECORDSTART            1
  48.  
  49. #define        kALERT_ABOUT                128
  50. #define        kALERT_ERROR                129
  51.  
  52. /* ------------------------------------------------------------------------- */
  53.  
  54. extern WindowPtr    gWin;
  55. extern GWorldPtr    gRecognizeThis;
  56.  
  57. void            main(void);
  58.  
  59. void            Initialize(void);
  60. void            DoCommand(long mResult);
  61. void            AdjustMenus(void);
  62. void            Finishup(void);
  63.  
  64. pascal OSErr    AEOpenHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  65. pascal OSErr    AEOpenDocHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  66. pascal OSErr    AEPrintHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  67. pascal OSErr    AEQuitHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
  68.  
  69. #endif
  70. /*#ifndef _MyCaptureAppShell_*/
  71.